---
title: useMemo
---

import useMemo from '../../examples/files/hooks/useMemo.js'

The `useMemo` hook lets us [memoize](https://en.wikipedia.org/wiki/Memoization) values as a performance optimization.

<Example
  code={useMemo}
  embeddedConsole={{
    enabled: true,
    visible: true,
  }}
  playground={{ enabled: false }}
/>
